package com.xnyzc.lhy.mis.mapper.coupon;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyzc.lhy.mis.entity.coupon.OaSysCouponBatch;
import feign.Param;

import java.util.List;

/**
 * <p>
 * 优惠券批次 Mapper 接口
 * </p>
 *
 * @author haoyfa
 * @since 2019-12-16
 */
public interface OaSysCouponBatchMapper extends BaseMapper<OaSysCouponBatch> {
    /**
     * 获取在某个时间有效的优惠券
     * @param effectiveDate 有效时间点，例如：2019-12-12
     * @return
     */
    List<OaSysCouponBatch> getEffectiveCouponBatchList(@Param("effectiveDate") String effectiveDate);
}
